import { CART_ADD_ACTION } from "../actionTypes";
import { gerCtategory } from "../../http/api";
export const initCategoryDataAction = (parms) => {
  return async (dispath) => {
    let res = await gerCtategory();
    dispath({
      type: CART_ADD_ACTION,
      payload: {
        category: res.message,
      },
    });
  };
};
